package com.well.module;

import com.well.kernel.util.WebUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * Copyright &copy; Well All rights reserved.
 * Author:Well
 * Date:2017-11-04
 * Description:
 */

@Controller
public class IndexController {

    @RequestMapping(value = "/")
    public ModelAndView index(HttpServletRequest request,ModelMap modelMap){
        String ip=WebUtil.getIP(request);
        System.out.println("ip："+ip);
        return new ModelAndView("module/index",modelMap);
    }

}
